Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix debug output for optimized executor #116337

Merged
merged 1 commit into from
Mar 5, 2024
Merged

Conversation

gvanrossum
Copy link
Member

The original debug output was missing the final instruction
(_EXIT_TRACE or _JUMP_TO_TOP) because of an off-by-one error
due to the choice to add an extra instruction (_START_EXECUTOR)
at the front.

The fix adjusts length rather than using length+1 in various places.

This adjusts `length` rather than using `length+1`
all over the place.
@gvanrossum gvanrossum merged commit d444dec into python:main Mar 5, 2024
55 checks passed
@gvanrossum gvanrossum deleted the fix-output branch March 5, 2024 18:05
adorilson pushed a commit to adorilson/cpython that referenced this pull request Mar 25, 2024
This adjusts `length` rather than using `length+1`
all over the place.
diegorusso pushed a commit to diegorusso/cpython that referenced this pull request Apr 17, 2024
This adjusts `length` rather than using `length+1`
all over the place.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants